/*    */ package com.zimbra.cs.index.analysis;
/*    */ 
/*    */ import java.io.IOException;
/*    */ import org.apache.lucene.analysis.TokenFilter;
/*    */ import org.apache.lucene.analysis.TokenStream;
/*    */ import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public final class ContactTokenFilter
/*    */   extends TokenFilter
/*    */ {
/* 29 */   private CharTermAttribute termAttr = (CharTermAttribute)addAttribute(CharTermAttribute.class);
/*    */   
/*    */   public ContactTokenFilter(AddrCharTokenizer input) {
/* 32 */     super(input);
/*    */   }
/*    */   
/*    */   public boolean incrementToken() throws IOException
/*    */   {
/* 37 */     while (this.input.incrementToken()) {
/* 38 */       if ((this.termAttr.length() != 1) || (this.termAttr.charAt(0) != '.'))
/*    */       {
/*    */ 
/* 41 */         return true;
/*    */       }
/*    */     }
/* 44 */     return false;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/index/analysis/ContactTokenFilter.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */